<?php defined('BASEPATH') OR exit('No direct script access allowed');

// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH.'/libraries/REST_Controller.php';

class Auth extends REST_Controller
{

    function test() {
        $args=array(
            'email'
            ,'password'
        );
        //Lấy tham số POST vào Arr Args
        $args = $this->_parse_post_args($args);
        //Validation
        $validation_rules=array(
            'email'=>"required|trim|valid_email"
            ,'password'=>"required|trim"
        );
        $this->_validate_args($args,$validation_rules);
        $this->response(array('error'=>"hehe"), 400);

    }
}
